package cn.myframe.service.sys;

import cn.myframe.entity.sys.SysInfoEntity;

import java.util.List;
import java.util.Map;

/**
 * 消息列表; InnoDB free: 3431424 kB
 * 
 * @author ynz
 * @email ynz@myframe.cn
 * @date 2017-09-07 15:18:56
 */
public interface SysInfoService {
	
	SysInfoEntity queryObject(Long id);
	
	List<SysInfoEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(SysInfoEntity sysInfo);
	
	void update(SysInfoEntity sysInfo);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);
	
	int checkExist(String id ,String name);
	
	int updateStatus(Long[] ids, Integer status);
	
	List<SysInfoEntity> queryInfoList(Map<String, Object> map);
	
	int queryInfoCount(Long uerId,Long companyId,List<Long> list);
	
	int queryAdminInfoCount(Long uerId);
	
	int queryUserTotal(Map<String, Object> map);
	
	List<SysInfoEntity> selectSysInfos(Long[] ids);

	/**
	 * 发送系统消息
	 * @param title
	 * @param content
	 * @param userId
	 */
	void sendSysInfo(String title, String content, Long userId);
}
